package 行为型设计模式.模板方法模式.demo;

/**
 * @Author lf
 * @Date 3/18/2024
 */
public class CoffeeMaker extends BeverageMaker {

    @Override
    void brew() {
        System.out.println("Dripping coffee through filter");
    }

    @Override
    void addCondiments() {
        System.out.println("Adding sugar and milk");
    }

    @Override
    boolean customerWantsCondiments() {
        return false; // 假设顾客不想要任何配料
    }
}
